package com.hgsoft.pubsv.component.base.dto;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 公共响应参数
 *
 * @author saint
 */
@ApiModel("公共响应参数")
@Data
@Accessors(chain = true)
public class BaseApiRespDto<T> implements Serializable {

	@ApiModelProperty(value = "响应编码")
	private String code;
	@ApiModelProperty(value = "响应描述")
	private String msg;
	@ApiModelProperty(value = "响应时间")
	private String receiveTime;
	@ApiModelProperty(value = "响应内容,字符串或者JSON")
	private T bizContent;
	@ApiModelProperty(value = "响应数据格式，除JSON外其余标注为String")
	private String format;// 返回数据格式，除JSON外其余标注为String
	@ApiModelProperty(value = "AES密钥,采用RSAWITHAES加解密方式时不为空")
	private String encryAesKey;// 采用RSAWITHAES加解密方式必传

	public BaseApiRespDto(String code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public BaseApiRespDto() {
		super();
	}

}
